package com.lelv.framework.junit;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;

import com.lelv.business.travelInfo.bo.ITravelArticelBo;
import com.lelv.business.travelInfo.model.TravelArticle;
import com.lelv.framework.plugin.Page;

public class PageTest {

	private ITravelArticelBo travelArticleBo;

	@Test
	public void testPage(){
		travelArticleBo = (ITravelArticelBo) SpringTest.getBeans("travelArticleBo");
		Page mPage = new Page();
		mPage.setPageNo(1);
		mPage.setPageSize(10);
		Page iPage = travelArticleBo.getTravelArticleList(mPage);
		List<TravelArticle> l = new ArrayList<TravelArticle>();
		l = iPage.getList();
		for(TravelArticle ta : l){
			System.out.println(ta.getTitle());
		}
	}

}
